﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Promosyon.aspx.cs" Inherits="Promosyon_Promosyon" %>

<%@ Register Assembly="ComponentArt.Web.UI" Namespace="ComponentArt.Web.UI" TagPrefix="ComponentArt" %>
<%@ Register Assembly="CrmControls" Namespace="CrmControls" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

    <script type="text/javascript" src="MasterMainSettings.js"></script>

    <script type="text/javascript">
    function PageClose()
    {
        window.close();
        window.opener.location="DataList.aspx?type=Promosyon";
    }
    function Refresh()
    {
    window.opener.location="DataList.aspx?type=Promosyon";
    }
    function Kontrol()
    {
        var txtid=document.getElementById("txtPromosyonKod");
        if(txtid.value!="")
        return true;
        else
        {
        alert("Lütfen Promosyon Kodu Girin!..");
        return false;
        }
    }
    function SilKontrol()
    {
        var txtid=document.getElementById("txtPromosyonKod");
        if(txtid.value!="")
        return true;
        else
        {
        alert("Lütfen Silmek İstediğiniz Promosyon Kodu Girin!..");
        return false;
        }
    }
      function DisableControl(id,id2)
      {
      var gelen= document.getElementById(id);
      if(gelen.value.length>0)
      document.getElementById(id2).disabled=true;
      else
      document.getElementById(id2).disabled=false;
      }
      
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div id="ToolBar">
        <table>
            <tr>
                <td>
                    <asp:ImageButton runat="server" ID="imgbtnKaydet" AlternateText="Kaydet" ImageUrl="~/images/page/save.gif"
                        OnClick="imgbtnKaydet_Click" />
                </td>
                <td>
                    <asp:ImageButton runat="server" ID="imgbtnKaydetKapat" AlternateText="Kaydet ve Kapat"
                        ImageUrl="~/images/page/saveClose.gif" Width="16px" OnClick="imgbtnKaydetKapat_Click" />
                </td>
                <td>
                    <asp:ImageButton runat="server" ID="imgbtnSil" AlternateText="Sil" ImageUrl="~/images/page/remove.gif"
                        OnClick="imgbtnSil_Click" />
                    <input type="hidden" id="hdnStokid" visible="false" runat="server" />
                </td>
                <td>
                    <asp:ImageButton ID="imgNewREcord" AlternateText="Yeni Kayıt" runat="server" ImageUrl="~/images/page/newrecord.gif"
                        OnClick="imgNewREcord_Click" Style="width: 16px" />
                </td>
            </tr>
        </table>
    </div>
    <div style="background-color: #F4F7FC; border-style: groove; border-width: thin;
        height: 590px;">
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="true">
        </asp:ScriptManager>
        <ComponentArt:TabStrip ID="TabStripPromosyon" SiteMapXmlFile="~/Data/Xml/PromosyonTabData.xml"
            MultiPageId="MenuItemPromosyon" runat="server" DefaultGroupCssClass="TopGroup"
            DefaultItemLookId="TopLevelTabLook" DefaultSelectedItemLookId="SelectedTopLevelTabLook"
            DefaultChildSelectedItemLookId="SelectedTopLevelTabLook" DefaultGroupTabSpacing="0"
            ImagesBaseUrl="images/ToolStrip/Vista/" Width="42%">
            <ItemLooks>
                <ComponentArt:ItemLook LookId="TopLevelTabLook" CssClass="TopLevelTab" HoverCssClass="TopLevelTabHover"
                    LabelPaddingLeft="15" LabelPaddingRight="15" LabelPaddingTop="4" LabelPaddingBottom="4" />
                <ComponentArt:ItemLook LookId="SelectedTopLevelTabLook" CssClass="SelectedTopLevelTab"
                    LabelPaddingLeft="15" LabelPaddingRight="15" LabelPaddingTop="4" LabelPaddingBottom="4" />
                <ComponentArt:ItemLook LookId="Level2TabLook" CssClass="Level2Tab" HoverCssClass="Level2TabHover"
                    LabelPaddingLeft="15" LabelPaddingRight="15" LabelPaddingTop="4" LabelPaddingBottom="4" />
                <ComponentArt:ItemLook LookId="SelectedLevel2TabLook" CssClass="SelectedLevel2Tab"
                    LabelPaddingLeft="15" LabelPaddingRight="15" LabelPaddingTop="4" LabelPaddingBottom="4" />
            </ItemLooks>
        </ComponentArt:TabStrip>
        <ComponentArt:MultiPage ID="MenuItemPromosyon" runat="server">
            <ComponentArt:PageView ID="PageViewPromosyon" runat="server">
                <div>
                    <table style="width: 500px">
                        <tr>
                            <td style="width: 25%">
                                <cc1:CrmLabel runat="server" ID="lblPromosyonKod" Text="Promosyon Kodu"></cc1:CrmLabel>
                            </td>
                            <td style="width: 75%">
                                <cc1:CrmTextBox runat="server" Enabled="true" Maxlength="25" ID="txtPromosyonKod"
                                    KontrolTipi="Multi"></cc1:CrmTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:CrmLabel runat="server" ID="lblPromosyonAdi" Text="Promosyon Adı"></cc1:CrmLabel>
                            </td>
                            <td>
                                <cc1:CrmTextBox runat="server" Enabled="true" Maxlength="50" ID="txtPromosyonAdi"
                                    Width="245px" KontrolTipi="Multi"></cc1:CrmTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:CrmLabel runat="server" ID="lblPromosyonTip" Text="Promosyon Tipi"></cc1:CrmLabel>
                            </td>
                            <td>
                                <cc1:CrmDropDown ID="drpPromosyonTip" Enabled="true" runat="server" Width="215px"
                                    AutoPostBack="true">
                                    <asp:ListItem Text="Alışveriş Limitine İndirim" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="Ürün Bazında İndirim" Value="1"></asp:ListItem>
                                    <asp:ListItem Text="Ürün Promosyonu" Value="2"></asp:ListItem>
                                    <asp:ListItem Text="Alışveriş Limitine Ürün Promosyonu" Value="3"></asp:ListItem>
                                    <asp:ListItem Text="Alışveriş Limitine KDV İndirimi" Value="4"></asp:ListItem>
                                    <asp:ListItem Text="Reyon Promosyonu" Value="5"></asp:ListItem>
                                </cc1:CrmDropDown>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:CrmLabel runat="server" ID="lblIndirimTipi" Text="İndirim Tipi"></cc1:CrmLabel>
                            </td>
                            <td>
                                <cc1:CrmDropDown runat="server" ID="drpIndirimTipi" Enabled="true" Width="115px"
                                    AutoPostBack="true">
                                    <asp:ListItem Text="Herkese" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="Müşteri" Value="1"></asp:ListItem>
                                </cc1:CrmDropDown>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:CrmLabel runat="server" ID="lblAlisVerisLimiti" Text="Alisveriş Limiti"></cc1:CrmLabel>
                            </td>
                            <td>
                                <cc1:CrmTextBox runat="server" ID="txtAlisverisLimiti" Width="110px" Enabled="true"
                                    Maxlength="12" KontrolTipi="Sayi" NoktaKontrol="true"></cc1:CrmTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:CrmLabel runat="server" ID="lblIndirimOrani" Text="İndirim Oranı"></cc1:CrmLabel>
                            </td>
                            <td>
                                <cc1:CrmTextBox runat="server" ID="txtIndirimOrani" Width="110px" Maxlength="2" KontrolTipi="Sayi"
                                    Enabled="true"></cc1:CrmTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:CrmLabel runat="server" ID="lblIndirimTutari" Text="İndirim Tutarı"></cc1:CrmLabel>
                            </td>
                            <td>
                                <cc1:CrmTextBox runat="server" ID="txtIndirimTutari" Width="110px" KontrolTipi="Sayi"
                                    NoktaKontrol="true" Maxlength="12" Enabled="true"></cc1:CrmTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:CrmLabel runat="server" ID="lblOdemeTipi" Text="Ödeme Tipi"></cc1:CrmLabel>
                            </td>
                            <td>
                                <cc1:CrmDropDown runat="server" ID="drpOdemeTipi" Width="115px" Enabled="true">
                                    <asp:ListItem Text="Nakit" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="Kredi Kart" Value="1"></asp:ListItem>
                                </cc1:CrmDropDown>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:CrmLabel runat="server" ID="lblBaslangicTarihi" Text="Baslangıç Tarihi"></cc1:CrmLabel>
                            </td>
                            <td>
                                <cc1:CrmTextBox ID="txtBaslangicTarihi" runat="server" Width="110px" KontrolTipi="Sayi"></cc1:CrmTextBox>
                                <input type="image" id="imgBaslangic" runat="server" src="~/images/ToolStrip/Vista/btn_calendar.gif" />
                                <cc2:CalendarExtender ID="CalendarExtenderBaslangicTarihi" runat="server" TargetControlID="txtBaslangicTarihi"
                                    PopupButtonID="imgBaslangic" Format="dd.MMMM.yyyy">
                                </cc2:CalendarExtender>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:CrmLabel runat="server" ID="lblBitisTarihi" Text="Bitiş Tarihi"></cc1:CrmLabel>
                            </td>
                            <td>
                                <cc1:CrmTextBox ID="txtBitisTarihi" runat="server" Width="110px" KontrolTipi="Sayi"></cc1:CrmTextBox>
                                <input type="image" id="imgBitis" runat="server" src="~/images/ToolStrip/Vista/btn_calendar.gif" />
                                <cc2:CalendarExtender ID="CalendarExtenderBitisTarihi" runat="server" TargetControlID="txtBitisTarihi"
                                    PopupButtonID="imgBitis" Format="dd.MMMM.yyyy">
                                </cc2:CalendarExtender>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:CrmLabel runat="server" ID="lblUrunLimit" Text="Ürün Limiti"></cc1:CrmLabel>
                            </td>
                            <td>
                                <cc1:CrmTextBox runat="server" ID="txtUrunLimit" Width="110px" KontrolTipi="Sayi"
                                    Maxlength="2" Enabled="true"></cc1:CrmTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:CrmLabel runat="server" ID="lblPromosyonAdeti" Text="Promosyon Adeti"></cc1:CrmLabel>
                            </td>
                            <td>
                                <cc1:CrmTextBox runat="server" ID="txtPromosyonAdeti" Width="110px" KontrolTipi="Sayi"
                                    Maxlength="2" Enabled="true"></cc1:CrmTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:CrmLabel runat="server" ID="lblPromosyonUrunFiyati" Text="Ürün Fiyatı"></cc1:CrmLabel>
                            </td>
                            <td>
                                <cc1:CrmTextBox ID="txtUrunFiyat" runat="server" Maxlength="12" NoktaKontrol="true" Width="110px" KontrolTipi="Sayi"
                                    Enabled="true"></cc1:CrmTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:CrmLabel runat="server" ID="lblMstIndOran" Text="Müşteri İnd. Oranı Uygulansınmı"></cc1:CrmLabel>
                            </td>
                            <td>
                                <cc1:CrmDropDown runat="server" ID="drpMstIndOran" Width="115">
                                    <asp:ListItem Text="Evet" Value="0"></asp:ListItem>
                                    <asp:ListItem Text="Hayır" Value="1"></asp:ListItem>
                                </cc1:CrmDropDown>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <cc1:CrmLabel runat="server" ID="lblVerilecekUrun" Text="Verilecek Urun"></cc1:CrmLabel>
                            </td>
                            <td>
                                <cc1:CrmTextBox runat="server" ID="txtVerilecekUrun" KontrolTipi="Multi" Enabled="true"></cc1:CrmTextBox>
                                <asp:Image ID="imgEkleVerilecekUrun" Width="20px" Height="20px" runat="server" ImageUrl="~/images/page/ico_Plus.gif" /><br />
                            </td>
                            <td>
                            </td>
                        </tr>
                    </table>
                </div>
            </ComponentArt:PageView>
            <ComponentArt:PageView ID="PageViewCariSecim" runat="server">
                <div>
                    <table style="width: 550px;">
                        <tr>
                            <td style="width: 3%;">
                            </td>
                            <td>
                                <table>
                                    <tr>
                                        <td>
                                            <cc1:CrmLabel runat="server" ID="lblSimdilik" Text="Promosyon Uygulanacak Cariler"></cc1:CrmLabel>
                                        </td>
                                        <td>
                                            <asp:Image ID="imgEkle" Width="20px" Height="20px" runat="server" ImageUrl="~/images/page/ico_Plus.gif" /><br />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 3%;">
                            </td>
                            <td>
                                <asp:Image runat="server" Width="505px" ID="imgciz" ImageUrl="~/images/ToolStrip/Vista/hr2.gif" />
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 3%;">
                            </td>
                            <td>
                                <cc1:CrmTextBox runat="server" ID="txtList" Width="500px" Height="365px" TextMode="MultiLine"
                                    Enabled="true" KontrolTipi="Multi"></cc1:CrmTextBox>
                            </td>
                        </tr>
                    </table>
                </div>
            </ComponentArt:PageView>
            <ComponentArt:PageView ID="PageViewStokSecim" runat="server">
                <div>
                    <table style="width: 550px;">
                        <tr>
                            <td style="width: 3%;">
                            </td>
                            <td>
                                <table>
                                    <tr>
                                        <td style="width: 50%;">
                                            <cc1:CrmLabel runat="server" ID="lblStok" Text="Promosyona Uygulanacak Stok"></cc1:CrmLabel>
                                        </td>
                                        <td style="width: 50%;">
                                            <asp:Image ID="imgEkle2" Width="20px" Height="20px" runat="server" ImageUrl="~/images/page/ico_Plus.gif" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 3%;">
                            </td>
                            <td>
                                <asp:Image runat="server" Width="505px" ID="imgCiz2" ImageUrl="~/images/ToolStrip/Vista/hr2.gif" />
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 3%;">
                            </td>
                            <td>
                                <cc1:CrmTextBox runat="server" ID="txtListStok" Width="500px" Height="365px" TextMode="MultiLine"
                                    Enabled="true" KontrolTipi="Multi"></cc1:CrmTextBox>
                            </td>
                        </tr>
                    </table>
                </div>
            </ComponentArt:PageView>
            <ComponentArt:PageView ID="PageViewReyon">
                <div>
                    <table style="width: 550px;">
                        <tr>
                            <td style="width: 3%;">
                            </td>
                            <td>
                                <table>
                                    <tr>
                                        <td>
                                            <cc1:CrmLabel runat="server" ID="lblReyon" Text="Promosyon Uygulanacak Reyon"></cc1:CrmLabel>
                                        </td>
                                        <td>
                                            <asp:Image ID="imgEkleReyon" Width="20px" Height="20px" runat="server" ImageUrl="~/images/page/ico_Plus.gif" /><br />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 3%;">
                            </td>
                            <td>
                                <asp:Image runat="server" Width="505px" ID="imgCiz3" ImageUrl="~/images/ToolStrip/Vista/hr2.gif" />
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 3%;">
                            </td>
                            <td>
                                <cc1:CrmTextBox runat="server" ID="txtListReyon" Width="500px" Height="365px" TextMode="MultiLine"
                                    Enabled="true" KontrolTipi="Multi"></cc1:CrmTextBox>
                            </td>
                        </tr>
                    </table>
                </div>
            </ComponentArt:PageView>
        </ComponentArt:MultiPage>
    </div>
    </form>
</body>
</html>
